java: ClassCastException - [Ljava.lang.Long; cannot be cast to java.lang.Long
Posted
by
ufk
on Stack Overflow
See other posts from Stack Overflow
or by ufk
Published on 2010-12-22T14:48:31Z
Indexed on
2010/12/22
14:54 UTC
Read the original article
Hit count: 235
java
|type-casting
Hello.
well.. I use red5 and setting/getting attributes using the IConnection class but tha's really not relevant.
'L' means long in java. so 0L is 0 type Long instead of just '0' which is 0 type Integer.
the following error message:
stack trace: java.lang.ClassCastException: [Ljava.lang.Long; cannot be cast to java.lang.Long
what's the difference between [Ljava.lang.Long and java.lang.Long ?
thanks!
© Stack Overflow or respective owner